from django import forms
from .models import Comment

class CommentForm(forms.ModelForm):
    class Meta:
        model = Comment
        fields = ['content']
        widgets = {
            'content': forms.Textarea(attrs={'class': 'textarea', 'placeholder': '写下你的评论...'}),
        }
        labels = {
            'content': '评论内容',
        }